from alg import Solution
from gen import generate_data

def test_maximum_swap():
    data = generate_data(3)
    print("测试数据：", data)
    for num in data:
        result = Solution().maximumSwap(num)
        print(f"原始数字: {num}，最大交换后: {result}")

if __name__ == "__main__":
    test_maximum_swap()
